﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml" data-start-Settings="{Position:StartPosition.CenterParent,Width:800,Height:600}">
<head>
    <meta charset="utf-8" />
    <title>WebApp 测试</title>
    <script src="use://WebApp"></script>
    <script>
        async function Main() {
            await (ThisWindow.Width = 800);
            await (ThisWindow.Height = 600);
            //await ThisWindow.ShowDialog();
        }
        async function Test() {
            var val = await ThisWindow.FunctionToRun(function () {
                return ThisWindow.Parent.toString();
            });
            alert(val);
        }
    </script>
</head>
<body style="background:#ffffff" onload="Main()">
    <div style="background:blue" onmousedown="ThisWindow.Move()">Title</div>
    <h1>WebApp 测试2</h1>
    <p style="background:red">this is test</p>
    <p><a href="javascript:void(0)" onclick="Test()">Test</a></p>
</body>
</html>